import request from '@/utils/request'

// 查询客户端访问人数
export function getStatics(query) {
  return request({
    url: '/forum/dynamic/statics',
    method: 'get',
    params: query
  })
}

// 查询微信客户端列表
export function listClient(query) {
  return request({
    url: '/wx/client/list',
    method: 'get',
    params: query
  })
}

// 查询微信客户端详细
export function getClient(id) {
  return request({
    url: '/wx/client/' + id,
    method: 'get'
  })
}

// 新增微信客户端
export function addClient(data) {
  return request({
    url: '/wx/client',
    method: 'post',
    data: data
  })
}

// 修改微信客户端
export function updateClient(data) {
  return request({
    url: '/wx/client',
    method: 'put',
    data: data
  })
}

// 删除微信客户端
export function delClient(id) {
  return request({
    url: '/wx/client/' + id,
    method: 'delete'
  })
}

// 导出微信客户端
export function exportClient(query) {
  return request({
    url: '/wx/client/export',
    method: 'get',
    params: query
  })
}
